sesl.androidx
Toggle table of contents
main
Platform filter
main
Switch theme
Search in API
sesl.androidx
core
/
androidx.core.util
/
[main]Predicate
Predicate
interface
Predicate
<
T
>
(
source
)
Compat version of
java.util.function.Predicate
Parameters
<T>
the type of the input to the operation
Members
Functions
and
Link copied to clipboard
open
fun
and
(
other
:
Predicate
<
in
T
>
)
:
Predicate
<
T
>
Returns a composed predicate that represents a short-circuiting logical AND of this predicate and another.
is
Equal
Link copied to clipboard
open
fun
<
T
>
isEqual
(
targetRef
:
Any
)
:
Predicate
<
T
>
Returns a predicate that tests if two arguments are equal according to
equals
.
negate
Link copied to clipboard
open
fun
negate
(
)
:
Predicate
<
T
>
Returns a predicate that represents the logical negation of this predicate.
not
Link copied to clipboard
open
fun
<
T
>
not
(
target
:
Predicate
<
in
T
>
)
:
Predicate
<
T
>
Returns a predicate that is the negation of the supplied predicate.
or
Link copied to clipboard
open
fun
or
(
other
:
Predicate
<
in
T
>
)
:
Predicate
<
T
>
Returns a composed predicate that represents a short-circuiting logical OR of this predicate and another.
test
Link copied to clipboard
abstract
fun
test
(
t
:
T
)
:
Boolean
Evaluates this predicate on the given argument.